package com.cinc.ebc.mm.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 库存调拨明细
 * @Author: jeecg-boot
 * @Date:   2022-06-21
 * @Version: V1.0
 */
@ApiModel(value="mm_stock_transfer_detail对象", description="库存调拨明细")
@Data
public class MmStockTransferDetailPage {

    // 主表
    /**单据号*/
    @Excel(name = "单据号", width = 15)
    @ApiModelProperty(value = "单据号")
    private java.lang.String billNo;
    /**单据日期*/
    @Excel(name = "单据日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "单据日期")
    private java.util.Date billDate;
    /**调出库房*/
    @Excel(name = "调出库房", width = 15, dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @Dict(dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @ApiModelProperty(value = "调出库房")
    private java.lang.String warehouseOut;
    /**调入库房*/
    @Excel(name = "调入库房", width = 15, dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @Dict(dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @ApiModelProperty(value = "调入库房")
    private java.lang.String warehouseIn;
    /**调出库管员*/
    @Excel(name = "调出库管员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "调出库管员")
    private java.lang.String warehouseEmpOut;
    /**调入库管员*/
    @Excel(name = "调入库管员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "调入库管员")
    private java.lang.String warehouseEmpIn;
    /**状态*/
    @Excel(name = "状态", width = 15, dicCode = "mm_stock_transfer_status")
    @Dict(dicCode = "mm_stock_transfer_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;

    // 明细
	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**主表ID*/
    @ApiModelProperty(value = "主表ID")
    private String pid;
	/**行号*/
	@Excel(name = "行号", width = 15)
    @ApiModelProperty(value = "行号")
    private Integer lineNo;
	/**物料*/
	@Excel(name = "物料", width = 15)
    @ApiModelProperty(value = "物料")
    private String materialId;
	/**物料编号*/
	@Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private String materialNo;
	/**物料描述*/
	@Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private String materialDesc;
	/**单位*/
	@Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private String unit;
	/**制单数量*/
	@Excel(name = "制单数量", width = 15)
    @ApiModelProperty(value = "制单数量")
    private java.math.BigDecimal billQty;
    /**调拨数量*/
    @Excel(name = "调拨数量", width = 15)
    @ApiModelProperty(value = "调拨数量")
    private java.math.BigDecimal transferQty;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private java.math.BigDecimal unitPrice;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal sumPrice;
	/**调出批次*/
	@Excel(name = "调出批次", width = 15)
    @ApiModelProperty(value = "调出批次")
    private String batchOut;
	/**调入批次*/
	@Excel(name = "调入批次", width = 15)
    @ApiModelProperty(value = "调入批次")
    private String batchIn;
	/**调出库位*/
	@Excel(name = "调出库位", width = 15, dictTable = "mdm_storage_location", dicText = "location_no", dicCode = "id")
    @ApiModelProperty(value = "调出库位")
    private String storageLocationOut;
	/**调入库位*/
	@Excel(name = "调入库位", width = 15, dictTable = "mdm_storage_location", dicText = "location_no", dicCode = "id")
    @ApiModelProperty(value = "调入库位")
    private String storageLocationIn;
    /**确认标志*/
    @Excel(name = "确认标志", width = 15)
    @ApiModelProperty(value = "确认标志")
    private String confirmFlag;
    /**确认日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "确认日期")
    private Date confirmDate;
    /**确认人*/
    @ApiModelProperty(value = "确认人")
    private String confirmEmp;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
